package edu.cqie.smartfarm.dto;

import edu.cqie.smartfarm.verify.anno.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "圈舍更新DTO对象", description = "圈舍更新DTO对象")
public class BarnUpdateDTO {
    @ApiModelProperty(value = "圈舍id")
    @NotNull(message = "圈舍id不能为空")
    private Integer barnId;

    @ApiModelProperty(value = "圈舍名称")
    private String barnName;

    @ApiModelProperty(value = "状态，布尔值（0或1），1代表启用，0代表停用，默认为启用状态")
    @Status
    private Integer status;
}
